package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTCgM implements java.io.Serializable {
		/**
		 * pk
		 * 采购单编码
		 **/
		String cgCode;
		/**
		 * 联系人
		 **/
		String contact;
		/**
		 * 电话
		 **/
		String tel;
		/**
		 * 业务员ID
		 **/
		Long saleId;
		EmpTSalesman saleman;
		/**
		 * 供应商编码
		 **/
		String vendorCode;
		EmpTVendor vendor;
		/**
		 * 订单状态
		 **/
		String status;
		/**
		 * 联系地址
		 **/
		String contactAddr;
		/**
		 * 所属机构ID
		 **/
		Long deptId;
		private VDepartment dept;
		/**
		 * 创建人
		 **/
		private VUser createUser;
		/**
		 * 创建时间
		 **/
		Date createDate;
		/**
		 * 修改人
		 **/
		private VUser modiUser;
		/**
		 * 修改时间
		 **/
		Date modiDate;
		private String note;
	
	public EmpTCgM(){
	}
	
		public String getCgCode(){
			return this.cgCode;
		}		
		public void setCgCode(String cgCode){
			this.cgCode = cgCode;
		}
		public String getContact(){
			return this.contact;
		}		
		public void setContact(String contact){
			this.contact = contact;
		}
		public String getTel(){
			return this.tel;
		}		
		public void setTel(String tel){
			this.tel = tel;
		}
		public Long getSaleId(){
			return this.saleId;
		}		
		public void setSaleId(Long saleId){
			this.saleId = saleId;
		}
		public String getVendorCode(){
			return this.vendorCode;
		}		
		public void setVendorCode(String vendorCode){
			this.vendorCode = vendorCode;
		}
		public String getStatus(){
			return this.status;
		}		
		public void setStatus(String status){
			this.status = status;
		}
		public String getContactAddr(){
			return this.contactAddr;
		}		
		public void setContactAddr(String contactAddr){
			this.contactAddr = contactAddr;
		}
		public Long getDeptId(){
			return this.deptId;
		}		
		public void setDeptId(Long deptId){
			this.deptId = deptId;
		}

		public VDepartment getDept() {
			return dept;
		}

		public void setDept(VDepartment dept) {
			this.dept = dept;
		}

		public VUser getCreateUser() {
			return createUser;
		}

		public void setCreateUser(VUser createUser) {
			this.createUser = createUser;
		}

		public VUser getModiUser() {
			return modiUser;
		}

		public void setModiUser(VUser modiUser) {
			this.modiUser = modiUser;
		}
		public Date getCreateDate(){
			return this.createDate;
		}		
		public void setCreateDate(Date createDate){
			this.createDate = createDate;
		}

		public Date getModiDate(){
			return this.modiDate;
		}		
		public void setModiDate(Date modiDate){
			this.modiDate = modiDate;
		}
	
		public String getNote() {
			return note;
		}

		public void setNote(String note) {
			this.note = note;
		}

		public String getCreateDateStr(){
			return DateUtil.dateToString(this.createDate,DateUtil.patternE);
		}
		public String getModiDateStr(){
			return DateUtil.dateToString(this.modiDate,DateUtil.patternE);
		}

		public EmpTSalesman getSaleman() {
			return saleman;
		}

		public void setSaleman(EmpTSalesman saleman) {
			this.saleman = saleman;
		}

		public EmpTVendor getVendor() {
			return vendor;
		}

		public void setVendor(EmpTVendor vendor) {
			this.vendor = vendor;
		}
		public String getStatusStr(){
			return FormateUtil.getInstance().getNameByCode("p_cg_status", this.status);
		}		
	
}